<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
       "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
  <title>Kogbox: <%= controller.action_name == "index" ? controller.controller_name.capitalize : (controller.action_name == "snippet" ? @snippet.method_name+" v."+@snippet.version.to_s : controller.action_name.capitalize) %></title>
  <%= stylesheet_link_tag 'default' %>
  <%= stylesheet_link_tag 'sIFR-screen' %>
  <%= javascript_include_tag :defaults %>
  <%# active_scaffold_includes %>
  <script src="/codepress/codepress.js" type="text/javascript"></script>
  <script src="/javascripts/sifr.js" type="text/javascript"></script>
  <script type="text/javascript" charset="utf-8">
  	if(typeof sIFR == "function"){
	    sIFR.replaceElement("h2.metabook", named({sFlashSrc: "/metabold.swf", sColor: "#3A5A9A"}));
	};
  </script>
</head>
<body>
<a style="float:right;" href="javascript:void(0);" onClick="$('translate_link').toggle();">Translate &raquo;</a>
<div id="translate_link" style="float:right;display:none;clear:right;">
	<script src="http://www.gmodules.com/ig/ifr?url=http://www.google.com/ig/modules/translatemypage.xml&up_source_language=en&w=160&h=60&title=&border=&output=js"></script>
</div>
<div id="header">
<a href="/"><img src="/images/logo-3.png" /></a>
<div class="links">
	<a href="/">home</a> | 
	<a href="/about">about</a> | 
	<a href="/examples">examples</a> | 
	<a href="/view/all">snippets</a> | 
	<a href="http://docs.kogbox.com">docs</a> | 
	<a href="http://blog.kogbox.com">blog</a> | 
	<a href="/search">search</a>	
	<!-- <form action="/search" method="get">
		<input type="input" name="q" value="<%= params[:q] %>" />
		<input name="s" type="hidden" value="<%= params[:s]%>">
		<input type="submit" value="Search" />
	</form> -->
	<% if !logged_in? %>
	| <%= link_to 'log in', :controller => 'account', :action => 'login' %>
	<% end %>
</div>
</div>
<% if logged_in? && controller.action_name != "home" %>
<div id="subnav">
	<a href="/snippets/list">Your Snippets</a> | 
	<a href="/user/<%= current_user.login %>">Your Profile</a> 
	<% if logged_in? %>
	| Logged in as <b><%= current_user.login %></b> (<%= link_to 'Log out', :controller => 'account', :action => 'logout' %>)
	<% end %>
</div>
<% end %>

<% if flash[:notice] %><p class="flash" style="color: green"><%= flash[:notice] %></p><% end %>
<% if flash[:error] %><p class="flash" style="color: red"><%= flash[:error] %></p><% end %>
<% if flash[:warning] %><p class="flash" style="color: orange"><%= flash[:warning] %></p><% end %>

<div id="content">
	<%= yield %>
</div>

<div id="footer">
<br />
<br />
<div class="links">
	<a href="/">home</a> | 
	<a href="/about">about</a> | 
	<a href="/examples">examples</a> | 
	<a href="/view/all">snippets</a> | 
	<a href="http://docs.kogbox.com">docs</a> | 
	<a href="http://blog.kogbox.com">blog</a> | 
	<a href="/search">search</a>	
	<!-- <form action="/search" method="get">
		<input type="input" name="q" value="<%= params[:q] %>" />
		<input name="s" type="hidden" value="<%= params[:s]%>">
		<input type="submit" value="Search" />
	</form> -->
	<% if !logged_in? %>
	| <%= link_to 'log in', :controller => 'account', :action => 'login' %>
	<% end %>
</div>
</div>
<link type="text/css" rel="stylesheet" href="/syntaxhighlighter/css/SyntaxHighlighter.css"></link>
<script language="javascript" src="/syntaxhighlighter/js/shCore.js"></script>
<script language="javascript" src="/syntaxhighlighter/js/shBrushPhp.js"></script>
<script language="javascript" src="/syntaxhighlighter/js/shBrushJscript.js"></script>
<script language="javascript" src="/syntaxhighlighter/js/shBrushCss.js"></script>
<script language="javascript" src="/syntaxhighlighter/js/shBrushXml.js"></script>
<script language="javascript">
dp.SyntaxHighlighter.ClipboardSwf = '/syntaxhighlighter/flash/clipboard.swf';
dp.SyntaxHighlighter.HighlightAll('code');
</script>
<!-- Rails version: <%= Rails::VERSION::STRING %> -->
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write("\<script src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'>\<\/script>" );
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-180781-22");
pageTracker._initData();
pageTracker._trackPageview();
</script>
</body>
</html>
